package com.nb.comsumer;

import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@EnableDubbo
@Slf4j
@SpringBootApplication
public class NbDubboConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(NbDubboConsumerApplication.class, args);
        System.out.println("======= Consumer Start! ======");
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
